﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Text;

namespace ASmile.Extern.Lib.Rsp
{
    public abstract class HttpResponseDefault : HttpResponseBase<Dictionary<string, string>>
    {
        protected override void ReceiveJsonData(HttpListenerContext context, Dictionary<string, string> bodyData)
        {
            var result = GetResponseObject(bodyData);
            ResponseObject(context, result);
        }

        protected abstract ApiResult GetResponseObject(Dictionary<string, string> jsonObj);
    }
}